package Exercises;

import java.util.Scanner;

public class qwertrewClass {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		
		int num = 50;
		int max = 50;
		int min = 50;
		int success = 0;
		
		String question = "";
		String yes = "y";
		String str = "";
		String b = ">";
		String s = "<";
		while(true){
			num /= 2;
			if(num<2){
					num = 2;
			}
		int number = (int) ((Math.random()*(max - min ) + min ));

		int save = number;
		System.out.println(number);
		
		
		str = sc.nextLine();
		
		if(str.equals(b)){
			min = max;
			max += num;
		}
		if (str.equals(s))
		{
			max = min;
			min -= num;
		
			
		}
		

		
		}
	
	}

}
